import request from '@/utils/request'
//查询
export const userlandresourceinfoGetService = ({ id, tar }) => {
  return request.get('adminlandresource/search', {
    params: {
      id,
      tar
    }
  })
}
//添加
export const userlandReinfoAddService = ({
  id,
  name,
  address,
  parcelcount,
  userid,
  tar
}) => {
  return request.post('adminlandresource/add', {
    id,
    name,
    address,
    parcelcount,
    userid,
    tar
  })
}
//更新
export const userlandReinfoUpService = ({
  id,
  name,
  address,
  parcelcount,
  userid,
  tar
}) => {
  return request.put('adminlandresource/up', {
    id,
    name,
    address,
    parcelcount,
    userid,
    tar
  })
}
// //删除
// export const landresourceinfoDlService = (id) => {
//   return request.delete('adminlandresource/delete', {
//     params: { id }
//   })
// }
